#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
char crr[100010];
char crr1[100010];
void Add(char* arr,char* brr)
{
	char t = 0;
	int str_a = strlen(arr);
	int str_b = strlen(brr);
	for (int i = 0; i < str_a || i < str_b; i++)
	{
		if (i < str_a) t += arr[i];
		if (i < str_b) t += brr[i];
		crr[i] = t % 10;
		t = t / 10;
	}
	int n = str_a >= str_b ? str_a : str_b;
	for (int i = 0; i < n; i++)
	{
		crr1[i] = crr[(n) - i - 1];
	}
}
int main()
{
	char arr[100010] = { 0 };
	char Arr[100010] = { 0 };
	gets(arr);
	gets(Arr);
	char arr1[100010] = { 0 };
	char Arr1[100010] = { 0 };
	for (int i = 0; i < strlen(arr); i++)
	{
		arr1[i] = arr[strlen(arr) - 1 - i] - '0';
	}
	for (int i = 0; i < strlen(Arr); i++)
	{
		Arr1[i] = Arr[strlen(Arr) - 1 - i] - '0';
	}
	Add(arr1, Arr1);
	int n = strlen(arr) >= strlen(Arr) ? strlen(arr) : strlen(Arr);
	for (int i = 0; i < n; i++)
	{
		printf("%c", crr1[i]+'0');
	}
	return 0;
}